package globals;

public class Point {
	public float x,y;
	public Point(){x=0; y=0;}
	public Point(float a,float b){x=a; y=b;}
	
	public void add(float a){x+=a; y+=a;}
	public void sub(float a){x-=a; y-=a;}
	public Point copy(){return new Point(x,y);}
	public static float dist(Point a, Point b){
		return (float) Math.hypot((a.x-b.x), (a.y-b.y));
	};
}
